<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnProjectIdInTaskWorkOrderTable extends AbstractMigration
{
    public function up()
    {
        $this->table('task_work_order')
            ->addColumn('project_id', 'integer', ['null' => false, 'default' => 0, 'limit' => 11, 'comment' => '项目id', 'signed' => false])
            ->save();

    }

    public function down()
    {
        $this->table('task_work_order')
            ->removeColumn('project_id')
            ->save();
    }
}
